package Guns;

import java.util.ArrayList;

import Game.Entity;
import Game.Mainth;
import Levels.LevelLoader;
import Levels.Objects;
import LifeForms.Robot;

public class Cal45 extends Guns{
	public Cal45(Robot robot) {
		super(robot);
	}
	void _update() {
	}
	void _fire(Robot robot, ArrayList<Projectile> projectiles){
		if(ammo>0){
			ammo--;
			Projectile bullet=new Projectile(Objects.bulletSprite,robot,robot.getID(),(robot.turret.getX()+(robot.turret.getSprite().getWidth()/2)),(robot.turret.getY()+(robot.turret.getSprite().getHeight()/2))) {};
			bullet.setHorMove(robot.turret.getfireSpeedX()*3);
			bullet.setVerMove(robot.turret.getfireSpeedY()*3);
			projectiles.add(bullet);
		}
	}
}
